﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectEulerSolutions.Problems
{
    class Problem138b : IProblem
    {
        public string Calculate()
        {
            var q = Fibonacci.Sequence().Skip(8);

            int limit = 12;
            int distance = 6;

            long sum = 0;
            int count = 0;

            while (count != limit)
            {
                count++;
                long f = q.First()/2;
                Console.WriteLine(f);
                sum += f;
                q = q.Skip(distance);
            }

            return sum.ToString();
        }      
    }
}
